{% extends 'ProjResManBundle::layout.html.twig' %}

{% block content %}

    <div class="container">
        <div>
            <h3>Membrii de departament</h3>
            
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Nume</th>
                    </tr>
                </thead>
                <tbody>
                    {% for person in departmentMembers %}
                        <tr>
                            <td>{{ person.lastname }} {{ person.firstname }}</td>
                            
                            <td>
                                <a href="{{ path("headmaster_resources_report_members", {"person_id": person.id}) }}">
                                    <button class="btn btn-info">Vizualizare rapoarte</button>
                                </a>
                            </td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
            
            <div id="container">
                <h3>Proiectele departamentului</h3>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>Nume</th>
                </tr>
            </thead>
            <tbody>
                {% for project in projects %}
                    <tr>
                        <td>{{ project.name }}</td>
                        <td>
                            <a href="{{ path("headmaster_resources_report_projects", {"project_id": project.id}) }}">
                                <button type="button" class="btn btn-info">Vizualizare rapoarte</button>
                            </a> 
                        </td>
                        </tr>
                      
                {% endfor %}
            </tbody>
        </table>
    </div>
       
             
        {#<div>
            <a href="{{ path("headmaster_tasks_details", {"activity_id": activityId, "task_id": taskId}) }}">Inapoi</a>
        </div>#}
    </div>

{% endblock %}
